

import {createWebHistory,createRouter} from "vue-router";
// import t1 from "@/components/t1.vue";
import t2 from "@/components/t2.vue";
import todolist from "@/components/todolist.vue"
import item from "@/components/item.vue"
import LoginView from '@/views/LoginView'

const routes = [
    { path: '/item', component: todolist },
    { path: '/todolist', component: item },
    // { path: '/t1', component: t1 },
    { path: '/t2', component: t2 },
    {
        path: '/login',
        name: 'login',
        component: LoginView
    }
]

export default createRouter({
    history: createWebHistory(),
    routes
})
// import {createWebHistory,createRouter} from "vue-router";
//
// import hhh from "@/components/hhh.vue";
// import LeftMenu from "@/components/LeftMenu.vue";
// import Child01 from "@/components/Child01.vue";
// import Child02 from "@/components/Child02.vue";
// const routes = [
//     {path:'/hhh',component:hhh},
//     {
//         path:'/LeftMenu',component:LeftMeau,
//         children:[
//             {
//                 path:'/Child01',component:Child01
//             },
//             {
//                 path:'/Child02',component:Child02
//             }
//         ]
//     }
//     ];
// export default createRouter({
//         history: createWebHistory(),
//         routes
//     }
// )